import request from '../utils/request'

// 查询医院数据
export function listHospitalDataByPage(params) {
  return request({
    url: '/sysBind/listHospitalDataByPage',
    method: 'post',
    data: params
  })
}

// 查询系统数据
export function listAccountingDataByPage(params) {
  return request({
    url: '/sysBind/listAccountingDataByPage',
    method: 'post',
    data: params
  })
}

// 分页查询数据对照
export function listSysBindByPage(params) {
  return request({
    url: '/sysBind/listSysBindByPage',
    method: 'post',
    data: params
  })
}

// 导出和下载模板
export function getExport(params) {
  return request({
    url: '/sysBind/export',
    method: 'post',
    data: params,
    responseType: 'blob'
  })
}

// 导入
export function getImportExcel(params) {
  return request({
    url: '/sysBind/importExcel',
    method: 'post',
    data: params,
    responseType: 'blob'
  })
}

// 批量对照
export function batchComparison(params) {
  return request({
    url: '/sysBind/batchComparison',
    method: 'get',
    params
  })
}

// 确认对照
export function updateSysBind(params) {
  return request({
    url: '/sysBind/updateSysBind',
    method: 'post',
    data: params
  })
}

// 撤销对照数据
export function revokeSysBind(params) {
  return request({
    url: '/sysBind/revokeSysBind',
    method: 'get',
    params
  })
}
